package com.itheima.service;

import com.itheima.mapper.CategoryMapper;
import com.itheima.pojo.Type;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

/**
 * @author Envy
 */
@Service
public class CategoryService {
    @Resource
    private CategoryMapper categoryMapper;

    /**
     * 分类列表
     */
    public List<Type> selectType() {
        return categoryMapper.selectType();
    }
}
